/**
 * 
 */

$(document).ready(function() {
	var rightIframe = "adminInfo.jsp";
	$("#exit").click(function(){
		$.get(
			"admin/returnLogin",
			function(){
				window.location.href="a";
			}
		)
	})

	$("#rightIframe").attr("src",rightIframe);
	
	$('#adminCommodityType').click(function(){
		$("#rightIframe").attr("src","adminCommodityType.jsp");
	});	
	$('#adminCommodityPage').click(function(){
		rightIframe = "adminCommodityPage.jsp";
		$("#rightIframe").attr("src","initAdminCommPage");
	});	
	$('#adminUserManage').click(function(){
		$("#rightIframe").attr("src","initUser");
	});	
	$('#adminInfo').click(function(){
		$("#rightIframe").attr("src","adminInfo.jsp");
	});	
	$('#myInfo').click(function(){
		$("#rightIframe").attr("src","myInfo.jsp");
	});	
	$('#editPwd').click(function(){
		$("#rightIframe").attr("src","editPwd.jsp");
	});	
	$('#orderManage').click(function(){
		$("#rightIframe").attr("src","initOrderManage");
	});
})